import http from "@/http"
import type { Order } from "@/types/order"

//搜索商品
export const getOrderApi  = (parm:any)=>{
    return http.post("/api/order/get",parm)
}
//添加订单
export const addOrderApi  = (parm:any)=>{
    return http.post("/api/order/add",parm)
}
//删除商品
export const deleteCommodityApi = (parm:Order)=>{
    return http.post("/api/commodity/delete",parm)
}
//修改商品
export const updateOrderApi = (parm:any)=>{
    return http.post("/api/order/update",parm)
}



//管理员搜索商品
export const adgetOrderApi  = (parm:any)=>{
    return http.post("/api/order/adget",parm)
}
//管理员修改商品
export const adupdateOrderApi = (parm:any)=>{
    return http.post("/api/order/adupdate",parm)
}